import { FormSchema } from '/@/components/Form';
import moment from 'moment';
import utils from '../../../utils/utils.js';
export const searchSchemas: FormSchema[] = [
  {
    field: 'device_name',
    component: 'Input',
    label: '设备名称',
    labelWidth: 80,
    componentProps: {
      placeholder: '请输入设备名称',
    },
    colProps: {
      span: 6,
    },
  },
  {
    field: 'time',
    component: 'RangePicker',
    label: '日期区间',
    labelWidth: 80,
    defaultValue: [
      moment(utils.getCurrentTime()).format('YYYY/MM/DD 00:00:00'),
      moment(utils.getCurrentTime()).format('YYYY/MM/DD') + ' 23:59:59',
    ],
    componentProps: () => {
      return {
        showTime: true,
      };
    },
    colProps: {
      xxl: 7,
      lg: 10,
      xl: 10,
      md: 12,
      sm: 8,
      xs: 8,
    },
  },
];
